package com.bdqn.t350.dao;

import com.bdqn.t350.pojo.Page;
import com.bdqn.t350.pojo.SysUser;
import com.bdqn.t350.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {

    public List<SysUser> getList();

    public int add(SysUser sysUser);

    public SysUser login(SysUser sysUser);

    public List<SysUser> getListPage(
            @Param(value = "pageIndex") Integer pageIndex,
            @Param(value = "pageSize") Integer pageSize,
            @Param(value = "sysUser") SysUser sysUser);

    public int getCountPage(
            @Param(value = "sysUser") SysUser sysUser);

    public SysUserVo view(@Param(value = "id") Integer id);

    public int deleteById(@Param(value = "id") Integer id);
}
